//
//  ENSearchHistoryCell.m
//  EverydayNews
//
//  Created by 李沛池 on 2017/8/10.
//  Copyright © 2017年 Godlike. All rights reserved.
//

#import "ENSearchHistoryCell.h"

@interface ENSearchHistoryCell ()

@property (weak, nonatomic) IBOutlet UILabel *labelText;
@property (weak, nonatomic) IBOutlet UIButton *btnCancel;

@end

@implementation ENSearchHistoryCell

- (void)initUI
{
    
}

- (void)updateData:(NSString *)word withObject:(NSNumber *)isFirst
{
    if ([isFirst boolValue]) {
        _labelText.text = @"搜索历史";
        _labelText.textColor = RGBCOLOR(80, 80, 80);
        _btnCancel.hidden = YES;
    }else {
        _labelText.text = word;
        _btnCancel.hidden = NO;
    }
}

- (IBAction)cancelAction:(id)sender
{
    self.baseCellBlock();
}


@end
